package com.vlong.town.controller.server.collection;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import com.vlong.town.controller.base.BaseController;
import com.vlong.town.entity.collection.Collection;
import com.vlong.town.service.collection.CollectionService;

/**
 * 收藏接口Controller
 * @author Assassin
 */
@RequestMapping("/rest/collection")
@RestController
public class CollectionRestController extends BaseController{

	@Autowired
	private  CollectionService  collectionService;
	
	@PostMapping("/queryByWxId")
	public  Collection  queryByWxId(@RequestParam(required=true, value="wxId") String wxId){
		Collection collection = collectionService.queryByWxId(wxId);
		return  collection;
	}
	
	
}
